<?php
/*
 * @project CreativeFramework
 * @version <#RELEASE_VERSION#>
 * @license GNU Lesser General Public License
 * @author Jimmie Lin
 */

class Welcome extends CF_Controller {
	function __construct() {
		$this->title = "Welcome";
		$this->desc = "Welcome page testing";
	}
	
	function Index() {
		global $Views, $Models, $Pagination, $DB;
		$Users_model = $Models->Load("users_model");
		$Views->Load("welcome", array("hai" => "cake"));
		echo $Pagination->generateLinks("/?test=1", (isset($_GET['page']) ? $_GET['page'] : 1), 10);
		//$DB->localizedQuery("test_localized_query");
	}
	
	function Test() {
		global $Debug;
		$Debug->writeLog("Hai!");
		echo "Hello from the test action! <b>Warning: You should never echo anything out directly - this is just an example.</b>";
	}
}
